﻿using System;
using System.Windows.Forms;
using Streambolics.Gui;

namespace Streambolics.App.Gpl
{

    public partial class OlvModuleObserver : StandardForm
    {
        public OlvModuleObserver ()
        {
            InitializeComponent ();
        }

        public ComputingModule Module
        {
            get
            {
                return list.Module;
            }
            set
            {
                list.Module = value;
            }
        }

        protected override void OnFormClosing (FormClosingEventArgs e)
        {
            base.OnFormClosing (e);
            Module = null;
        }

        private void button_Close_Click (object sender, EventArgs e)
        {
            Close ();
        }

        private void button_Start_Click (object sender, EventArgs e)
        {
            list.StartSelected ();
        }

        private void button_Stop_Click (object sender, EventArgs e)
        {
            list.StopSelected ();
        }

        private void button_Details_Click (object sender, EventArgs e)
        {
            list.DetailSelected ();
        }
    }
}
